package com.open.center.jpa.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.hibernate.annotations.IdGeneratorType;

/**
 * 自定义Uuid
 *
 * @author Riche's
 * @since 2025/4/2
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@IdGeneratorType(MeUuidGenerator.class)
public @interface MeUuid {

    /**
     * 版本
     */
    UuidVersion version() default UuidVersion.V7;

    /**
     * 大写
     */
    boolean useUpper() default false;
}
